package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 费用类别对象 t_base_cost
 * 
 * @author ruoyi
 * @date 2024-03-21
 */
public class TBaseCost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 费用ID */
    private Long costId;

    /** 费用名称 */
    @Excel(name = "费用名称")
    private String costName;

    /** 费用类别：1=收入，2=支出 */
    @Excel(name = "费用类别：1=收入，2=支出")
    private String costType;

    /** 0:删除1：正常 */
    @Excel(name = "0:删除1：正常")
    private String disable;

    /** 是否内置 1是 0否 */
    @Excel(name = "是否内置 1是 0否")
    private String isSystem;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createPerson;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updatePerson;

    /** 项目Id */
    @TableField(exist = false)
    private Long projectId;

    /** 项目Id */
    @TableField(exist = false)
    private Long hisprojectId;

    public Long getHisprojectId() {
        return hisprojectId;
    }

    public void setHisprojectId(Long hisprojectId) {
        this.hisprojectId = hisprojectId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getIsSystem() {
        return isSystem;
    }

    public void setIsSystem(String isSystem) {
        this.isSystem = isSystem;
    }

    public void setCostId(Long costId)
    {
        this.costId = costId;
    }

    public Long getCostId() 
    {
        return costId;
    }
    public void setCostName(String costName) 
    {
        this.costName = costName;
    }

    public String getCostName() 
    {
        return costName;
    }
    public void setCostType(String costType) 
    {
        this.costType = costType;
    }

    public String getCostType() 
    {
        return costType;
    }
    public void setDisable(String disable) 
    {
        this.disable = disable;
    }

    public String getDisable() 
    {
        return disable;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setCreatePerson(String createPerson) 
    {
        this.createPerson = createPerson;
    }

    public String getCreatePerson() 
    {
        return createPerson;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setUpdatePerson(String updatePerson) 
    {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson() 
    {
        return updatePerson;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("costId", getCostId())
            .append("costName", getCostName())
            .append("costType", getCostType())
            .append("disable", getDisable())
            .append("createDate", getCreateDate())
            .append("createPerson", getCreatePerson())
            .append("updateDate", getUpdateDate())
            .append("updatePerson", getUpdatePerson())
            .toString();
    }
}
